package com.qidian.blog.service;

import com.qidian.blog.pojo.BlogArticle;
import com.qidian.blog.pojo.BlogArticleContent;
import com.qidian.blog.pojo.BlogConfig;
import com.qidian.blog.util.pojo.LayuiTableDTO;
import com.qidian.blog.util.pojo.QDResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 郭浩
 * @Date 2022/10/11 16:16
 */
public interface BlogArticleService {
    List<BlogArticle> queryAll();

    QDResult save(BlogArticle article, BlogArticleContent content);

    LayuiTableDTO<BlogArticle> queryByPage(int page,int limit,BlogArticle article,String timeStart,String timeEnd);

    QDResult queryById(Long id);

    QDResult update(BlogArticle article, BlogArticleContent  content);

    QDResult detail(Long articleId,String token);

    QDResult doPraise(Long articleId,String token);

    QDResult delete(BlogArticle blogArticle);

    QDResult queryByCategoryId(Long id);
}
